package com.hsj.common.system.client;

import com.hsj.common.system.entity.SysUserDo;
import com.hsj.common.security.client.ClientLogin;
import org.springframework.stereotype.Component;

@Component
public class LoginClientImpl implements ClientLogin<SysUserDo> {
    @Override
    public String getClientId(SysUserDo sysUserDo) {
        return sysUserDo.getId().toString();
    }

    @Override
    public String getClientName(SysUserDo sysUserDo) {
        return sysUserDo.getRealName();
    }

    @Override
    public String getClientPhone(SysUserDo sysUserDo) {
        return sysUserDo.getUserName();
    }

    @Override
    public String getClientEmail(SysUserDo sysUserDo) {
        return sysUserDo.getUserName();
    }

}
